#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define TIME (1e3*clock()/CLOCKS_PER_SEC)
#define debug(fmt,...) fprintf(stderr, fmt, ##__VA_ARGS__)
#define debugln(fmt,...) fprintf(stderr, "[%d] " fmt, __LINE__,##__VA_ARGS__)
bool memBeg;

bool memEn;
void fl() {
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
}
int main() {
    debug("%.24lf\n",fabs(&memEn-&memBeg)/1024.0/1024.0);
    fl();
    int n; scanf("%d",&n);
    vector<int> arr(n);
    for(int i=0;i<n;i++) scanf("%d",&arr[i]);
    sort(arr.begin(),arr.end());
    int pt=0;
    for(int u:arr) {
        if(u>arr[pt]) pt++;
    }
    printf("%d\n",n-pt);
    return 0;
}
/*
g++ duel.cpp -o duel -std=c++14 -O2 -Wall -Wextra -Wshadow
# -fsanitize=address,undefined
*/